home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / disk / cf604.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-11-11  |  5KB  |  155 lines

  1. echo off
  2. cls
  3. if '%1'=='' goto NeedDrive
  4.  
  5. if not exist cmfiler.com goto WrongDir
  6. if exist cmfiler.ovy goto RightDir
  7.  
  8. :NeedDrive
  9. echo You must specify the drive letter into which to install CMFiler; e.g.
  10. echo.
  11. echo INSTALL C
  12. echo.
  13. echo Do not include a colon after the drive letter. Please try again.
  14. echo.
  15. goto TheEnd
  16.  
  17. :WrongDir
  18. echo INSTALL.BAT is unable to find the CMFiler program files.
  19. echo.
  20. echo Make sure that all the files from the original CF604.ZIP, CF604.EXE
  21. echo or CMFILE.ZIP compression are in the same directory, and that that
  22. echo directory is selected as the DOS current directory before running
  23. echo INSTALL.BAT.
  24. echo.
  25. pause
  26. goto TheEnd
  27.  
  28. :RightDir
  29. echo        *****  CMFiler Ver 6.04 Installation *****
  30. echo.
  31. echo This batch file creates the directory %1:\CF604 and copies to it
  32. echo the files in the CMFiler Ver 6.04 fileset.
  33. echo.
  34. if exist %1:\DOS\CHOICE.COM goto GetChoice
  35. pause
  36. goto InstallNow
  37.  
  38. :GetChoice
  39. %1:\DOS\CHOICE.COM Proceed with installation 
  40. if errorlevel 2 goto TheEnd
  41.  
  42. :InstallNow
  43. cls
  44. echo Installing CMFiler Ver 6.04 to %1:\CF604
  45. echo.
  46. echo Creating %1:\CF604
  47. echo.
  48. md %1:\cf604
  49. copy BRIEF.TXT %1:\CF604\BRIEF.TXT
  50. if not exist %1:\cf604\BRIEF.TXT goto FailDir
  51. echo Copying files. . .
  52. echo.
  53. copy *.* %1:\cf604
  54. echo Creating CF604.BAT on %1:\
  55. echo %1:\CF604\CMFILER.COM >%1:\CF604.BAT
  56. echo.
  57. echo File copying complete. Note any error messages, then
  58. pause
  59. cls
  60. if not exist %1:\CF604\CMFILER.COM goto NoProgs
  61. if exist %1:\CF604\CMFILER.OVY goto OKProgs
  62.  
  63. :NoProgs
  64. echo Program files did not copy. Installation aborted.
  65. goto TheEnd
  66.  
  67. :OKProgs
  68. echo Program files apparently copied successfully.
  69. echo.
  70. echo To run CMFiler at the DOS prompt, you may:
  71. echo.
  72. echo   (1) type:
  73. echo         %1:\CF604\CMFILER
  74. echo.
  75. echo      or;
  76. echo.
  77. echo   (2) just type:
  78. echo         %1:\CF604
  79. echo.
  80. echo If you have an existing .CFG file from a previous version, just
  81. echo copy it into the %1:\CF604 directory over any new .CFG file the
  82. echo new CMFiler may have made. Be sure the .CFG file has the same name
  83. echo (i.e., CMFILER or CF) as the .COM file.
  84. echo.
  85. pause
  86. cls
  87. echo The files in the directory %1:\CF604 include CMFILER.PIF and CMFILER.ICO
  88. echo files for running CMFiler under Windows 3.1 or Windows 95. The CMFILER.PIF
  89. echo file assumes CMFiler has been installed in the C drive. If you used
  90. echo some other drive, edit CMFILER.PIF before using it.
  91. echo.
  92. pause
  93. echo For Windows 3.1:
  94. echo.
  95. echo To add CMFiler to a program group, go to the Windows Program Manager, and
  96. echo double click on the desired group.  Then, in the Program Manager menu bar,
  97. echo click on File, and New...  Then click the Program Item bullet, and OK.
  98. echo.
  99. echo Fill in the data in the next menu as follows, moving the cursor from
  100. echo each line to the next using your mouse and clicking:
  101. echo.
  102. echo Description:  CMFiler
  103. echo Command Line: %1:\CF604\CMFILER.COM
  104. if %1==C goto W31C
  105. if not %1==c goto W31NotC
  106.  
  107. :W31C
  108. echo           [or %1:\CF604\CMFILER.PIF]
  109. :W31NotC
  110. echo Working Directory: %1:\  [or whatever you would like CMFiler to start in]
  111. echo Shortcut Key: [Optional. I use Ctrl+Alt+C]
  112. echo Also decide if you want CMFiler to start minimized. I leave this off.
  113. echo.
  114. echo Then click on the Change Icon... button.  Windows will tell you there are
  115. echo no available icons for this file.  Click OK, then, on the File Name line
  116. echo in the next menu, type %1:\CF604\CMFILER.ICO and click on OK twice.
  117. echo The CMFiler icon should appear in the CMFiler Properties box.
  118. echo Click OK on the Program Item Properties menu, and the CMFiler icon should
  119. echo appear in the program group. Just double click on it to run.
  120. echo.
  121. pause
  122. cls
  123. echo For Windows 95:
  124. echo.
  125. echo To add CMFiler to a program folder as a shortcut, click on Start,
  126. echo go to Settings and click on Taskbar...  Click on the
  127. echo Start Menu Programs tab, click on Add, type in %1:\CF604\CMFILER.COM
  128. if %1==C goto W95C
  129. if not %1==c goto W95NotC
  130.  
  131. :W95C
  132. echo [or %1:\CF604\CMFILER.PIF]
  133. :W95NotC
  134. echo and click on Next.
  135. echo.
  136. echo Select a folder to put the CMFiler shortcut into and click on Next.
  137. echo If you want CMFiler on your desktop when Windows 95 starts up, click on
  138. echo the folder Desktop.  If you want Windows 95 to start up with
  139. echo CMFiler already running, click on the Startup folder.  Otherwise,
  140. echo pick an appropriate folder in Programs to put it in.
  141. echo.
  142. echo Select a name for the shortcut (CMFiler will probably be the default),
  143. echo and click OK.
  144. echo.
  145. pause
  146. goto TheEnd
  147.  
  148. :FailDir
  149. echo.
  150. echo Unable to create %1:\CF604. Please specify another drive.
  151.  
  152. :TheEnd
  153. echo.
  154. echo on
  155.